// 数据封装
// Created by FanGccU on 2025/6/14.
//

#include <iostream>
using namespace std;

class User {
    long int id;
    string name;
    short int age;
    char sex;
    string address;

public:
    long int getInt() const {
        return id;
    }

    void setId(long int id) {
        this->id = id;
    }

    string getName() const {
        return name;
    }

    void setName(const string &name) {
        this->name = name;
    }

    short int getAage() const {
        return age;
    }

    void setAge(short int age) {
        this->age = age;
    }

    char getSex() const {
        return sex;
    }

    void setSex(char sex) {
        this->sex = sex;
    }

    string getAddress() const {
        return address;
    }

    void setAddress(const string &address) {
        this->address = address;
    }
};

int main(int argc, char *argv[]) {
    User user;
    user.setId(10001);
    user.setName("小宝");
    user.setSex('1');
    user.setAge(18);
    user.setAddress("广东省深圳市龙华区");

    cout << "用户信息：" << user.getInt() << " " << user.getName() << " " << user.getSex() << " " << user.getAage() << " " <<
            user.getAddress() << endl;
}
